#ifndef XGE_XTHREAD_DEBUG_H_
#define XGE_XTHREAD_DEBUG_H_
#include "xge_common_config.h"
#include "xallstatic.h"
#include "xstring.h"

namespace xge {
  namespace xge_internal {

    // This class simply provide interface to do the Thread Assertion 
    // Simply testing if the current thread is the main thread or back-thread
    class ThreadDebug : public AllStatic {
    public:
      // This function will test if this call is in the main thread
      static bool IsInMainThread();
      // This function will test if this call is in the back thread
      static bool IsInBackThread();
    };

  } // namespace xge_internal
}// namespace xge

#endif// XGE_XTHREAD_DEBUG_H_